package com.dgshanger.sanhxiaofeisc.ui.person.feedback

import com.dgshanger.sanhxiaofeisc.R
import com.dgshanger.sanhxiaofeisc.mvp.contract.FeedbackContract
import com.dgshanger.sanhxiaofeisc.mvp.presenter.FeedbackPresenter
import com.xx.baseuilibrary.mvp.BaseMvpActivity
import kotlinx.android.synthetic.main.activity_feedback.*


/**
 * FeedbackActivity
 * 沉迷学习不能自拔
 * Describe：意见反馈
 * Created by 雷小星🍀 on 2018/4/16 14:07.
 */
class FeedbackActivity : BaseMvpActivity<FeedbackContract.Model, FeedbackContract.View, FeedbackPresenter>(),
        FeedbackContract.View {

    override fun createPresenter(): FeedbackPresenter = FeedbackPresenter()

    override val content: String
        get() = et_content.text.toString()

    override fun getActivityLayoutId(): Int = R.layout.activity_feedback

    override fun initData() {
    }

    override fun initEvent() {
        btn_sure.setOnClickListener {
            //反馈成功
            getPresenter().referFeedback()
        }
    }
}